package com.lvzero.answer.common;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * 结果码
 */

public class ResultCode {

    public static final int SUCCESS = 200; //响应成功状态码
    public static final int FAIL = 201; //响应失败状态码
    public static final String DEFAULT_SUCCESS_MESSAGE = "操作成功";
    public static final String DEFAULT_FAIL_MESSAGE = "系统异常";

    private int code = SUCCESS;
    private String message;

    public ResultCode() {

    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public ResultCode(int code, String message) {
        this.code = code;
        this.message = message;
    }

}
